package com.iotproject.studyservice.service.impl;

import com.iotproject.studyservice.entity.UserCollectionWord;
import com.iotproject.studyservice.entity.vo.CollectionWord;
import com.iotproject.studyservice.mapper.UserCollectionWordMapper;
import com.iotproject.studyservice.service.UserCollectionWordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户收藏单词 服务实现类
 * </p>
 *
 * @author testjava
 * @since 2023-04-06
 */
@Service
public class UserCollectionWordServiceImpl extends ServiceImpl<UserCollectionWordMapper, UserCollectionWord> implements UserCollectionWordService {

    @Autowired
    UserCollectionWordMapper userCollectionWordMapper;

    //获取收藏夹单词列表
    @Override
    public List<CollectionWord> getUserCollectionWordList(String userId, String grade) {
        List<CollectionWord> userCollectionWordList = userCollectionWordMapper.getUserCollectionWordList(userId, grade);
        return userCollectionWordList;
    }


}


